import request from '@/utils/request'

// 查询快递信息列表
export function listEms(query) {
  return request({
    url: '/store/ems/list',
    method: 'get',
    params: query
  })
}

// 查询快递信息详细
export function getEms(emsId) {
  return request({
    url: '/store/ems/' + emsId,
    method: 'get'
  })
}

// 新增快递信息
export function addEms(data) {
  return request({
    url: '/store/ems',
    method: 'post',
    data: data
  })
}

// 修改快递信息
export function updateEms(data) {
  return request({
    url: '/store/ems',
    method: 'put',
    data: data
  })
}

// 删除快递信息
export function delEms(emsId) {
  return request({
    url: '/store/ems/' + emsId,
    method: 'delete'
  })
}
// 批量发货
export function deliveryList(data) {
  return request({
    url: '/store/ems/deliveryList',
    method: 'post',
    data: data
  })
}